cmake_minimum_required(VERSION 3.28)
project(day38_derivetask)

set(CMAKE_CXX_STANDARD 17)

add_executable(day38_derivetask main.cpp)

# 添加 Logger 的包含目录
target_include_directories(day38_derivetask PRIVATE
        ${CMAKE_CURRENT_SOURCE_DIR}/Logger
        ${CMAKE_CURRENT_SOURCE_DIR}/Command
)

# 指定Logger的库文件路径并链接
target_link_directories(day38_derivetask PRIVATE
        ${CMAKE_CURRENT_SOURCE_DIR}/Logger
        ${CMAKE_CURRENT_SOURCE_DIR}/Command
)

target_link_libraries(day38_derivetask PRIVATE
        Logger
        Command
)      # 链接Logger库